IsODToken
TheIsODToken
method returns a Boolean value that indicates whether the specified token object has been initialized to the proper format for an OpenDoc token.
ODBoolean IsODToken(in ODOSLToken token);
- token
- A reference to the token to check.
- return value
kODTrue
if the token is a token object created by one of your object accessors, otherwisekODFalse
.DISCUSSION
You can call this method from theCallCompareProc
method of your part's semantic interface. Either of theobj1
andobj2
parameters to that method may be either anODDesc
object that describes data or anODOSLToken
object created by one of your object accessors. To distinguish these two possibilities, you can pass each input parameter, in turn, to theIsODToken
method. If this method returns true, the input parameter is a token object; if it returns false, the input parameter is a descriptor object.SEE ALSO
TheODSemanticInterface::CallCompareProc
method (page 587).
"Returning Tokens" on page 428 in OpenDoc Programmer's Guide.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help